package com.vo
{
	

	[Bindable]
	public class AttributeVo
	{
		public var attrName:String;
		private var _attrType:String = "";
		public function set attrType(val:String):void
		{
			if(val.indexOf("|") != -1)
			{
				var arr:Array = val.split('|');
				this._attrType = arr[0];
				
				var parm:String = String(arr[1]);
				if(parm.indexOf("-") != -1)//字符串后面要跟个长度 所以用-隔开 如string-16
				{
					var arr2:Array = parm.split('-');
					subType = arr2[0];
					stringFixedLen = int(arr2[1]);
				}
				else
				{
					subType = parm;
				}
			}
			else if(val.indexOf("-") != -1)
			{
				var arr3:Array = val.split('-');
				this._attrType = arr3[0];
				stringFixedLen = int(arr3[1]);
			}
			else
			{
				this._attrType = val;
			}
		}
		
		public function get attrType():String{
			return this._attrType;
		}
		//如果是数组才会有值
		public var subType:String;
		/** 注释 **/
		public var annotation:String;
		/**
		 * 默认值 
		 */		
		public var defaultVal:String;

		public var stringFixedLen:int;

		public function AttributeVo()
		{
			
		}

	}
}